/*
package com.example.jvm.jvm01.lesson07;

import lombok.extern.slf4j.Slf4j;
import sun.security.util.CurveDB;

import java.security.Provider;

*/
/**
 * @Description
 * @Date 2021/7/7
 * @Created by Jonathan
 * 三种类加载器：启动、扩展、系统
 *//*

@Slf4j
public class Demo01_ClassLoader {
    public static void main(String[] args) {
        log.info("启动类加载器。");
        String property = System.getProperty("sun.boot.class.path");
        String[] split = property.split(":");
        for (String path : split) {
            log.info("path:{}", path);
        }

        ClassLoader classLoader = Provider.class.getClassLoader();
        log.info("----");
        log.info("启动类加载器:{}", classLoader);

        log.info("----");
        log.info("----");
        log.info("扩展类加载器。");
        String dirs = System.getProperty("java.ext.dirs");
        String[] split1 = dirs.split(":");
        for (String path : split1) {
            log.info("path:{}", path);
        }
        ClassLoader classLoader1 = CurveDB.class.getClassLoader();
        log.info("----");
        log.info("扩展类加载器:{}", classLoader1);

        log.info("----");
        log.info("----");
        log.info("扩展类加载器。");
        String classpath = System.getProperty("java.class.path");
        String[] split2 = classpath.split(":");
        for (String path : split2) {
            log.info("path:{}", path);
        }
        ClassLoader classLoader2 = Demo01_ClassLoader.class.getClassLoader();
        log.info("----");
        log.info("应用程序类加载器:{}", classLoader2);
    }
}
*/
